import type { AddAddressItem } from '@/types/address'
import { defineStore } from 'pinia'
import { ref } from 'vue'

export const useAddressStore = defineStore('address', () => {
  // 准备响应式的数据 用户记录 收货地址
  const selectAddress = ref<AddAddressItem>()
  const changeSelectAddress = (val: AddAddressItem) => {
    // console.log(11111, 333333)
    selectAddress.value = val
  }
  return { selectAddress, changeSelectAddress }
})
